package cn.tedu._04mybatis.mapper;

import cn.tedu._04mybatis.pojo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @Mapper注解，是为这个接口创建唯一的接口实现类对象，就类似创建了UserMapperImpl实现类
 */
@Mapper
public interface UserMapper {
    /**
     * 插入用户数据
     * @param user
     * @return
     */
    //@Insert("insert into user(username,password,nickname,created)values (#{username},#{password},#{nickname},#{created})")
    abstract int insertUser(User user);
}
